package com.gkj.blog.persistence.po;

import com.gkj.blog.framework.object.AbstractDO;

import java.util.Date;
import java.util.List;

public class SysResources extends AbstractDO{
    private String name;

    private String url;

    private String permission;

    private Long parentId;

    private Integer sort;


    private SysResources parent;

    private List<SysResources> nodes;
    /**
     * role查询拥有的资源时，标注role是否拥有该资源
     */
    private boolean checked;

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public SysResources getParent() {
        return parent;
    }

    public void setParent(SysResources parent) {
        this.parent = parent;
    }

    public List<SysResources> getNodes() {
        return nodes;
    }

    public void setNodes(List<SysResources> nodes) {
        this.nodes = nodes;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

}